package com.guinea.system.dao;

import java.util.List;
import com.guinea.core.orm.HibernateDao;
import com.guinea.system.entity.MenuRoleRel;

public class MenuRoleRelDao extends HibernateDao {

	public Class getEntityClass() {
		return MenuRoleRel.class;
	}

	public List getByRoleMenu(Long roleId, Long menuId) {
		return find(
				"select e from MenuRoleRel e where e.status = '1' and e.role.id = ? and e.menu.id = ?",
				new Object[] { roleId, menuId });
	}
	
}
